package com.mymarkdown.app.interfaces.impl;

import com.mymarkdown.app.interfaces.RemotePullMdService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;

/**
 * @author zenglun
 * @date 2021/12/17 5:58 下午
 * @description: TODO
 */
@Slf4j
@Service
public class RemotePullMdServiceImpl implements RemotePullMdService {

    @Override
    public void pushMdBody(String message) {
        //TODO Step.1 对数据进行转换
        //TODO 读取他的配置信息
//        try {
////            URL jarUrl = new URL("");
////            URLClassLoader urlClassLoader = new URLClassLoader(new URL[]{jarUrl}, Thread.currentThread().getContextClassLoader());
//
//            //读取配置信息
//
//
//
//        } catch (MalformedURLException e) {
//            e.printStackTrace();
//        }

        //TODO Step.2 提取数据中信息,获取推送URL

        //TODO

    }
}
